#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <stdlib.h>
int int_com(const void* p1, const void* p2)
{
	return *(int*)p1 - *(int*)p2;
}
int char_com(const void* p1, const void* p2)
{
	return *(char*)p1 - *(char*)p2;
}
int double_com(const void* p1, const void* p2)
{
	return *(double*)p1 - *(double*)p2;
}
int main()
{
	int arr1[] = { 1, 2, 6, 3, 7, 2, 4, 8, 2, 4 };
	char arr2[] = { 'v', 'g', 'w', 'a', 'h', 'd', 'h','l' };
	double arr3[] = { 3.53, 25.35, 62.34, 74.24, 2.3, 56.2, 63.7, 23.4 };
	qsort(arr1, sizeof(arr1) / sizeof(arr1[0]), sizeof(arr1[0]), int_com);
	qsort(arr2, sizeof(arr2) / sizeof(arr2[0]), sizeof(arr2[0]), char_com);
	qsort(arr3, sizeof(arr3) / sizeof(arr3[0]), sizeof(arr3[0]), double_com);

	for (int i = 0; i < sizeof(arr1) / sizeof(arr1[0]); i++)
		printf("%d ", arr1[i]);
	printf("\n");
	for (int i = 0; i < sizeof(arr2) / sizeof(arr2[0]); i++)
		printf("%c ", arr2[i]); 
	printf("\n");
	for (int i = 0; i < sizeof(arr3) / sizeof(arr3[0]); i++)
		printf("%lf ", arr3[i]);
	printf("\n");
	return 0;
}